<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@page import="test.*"%>

<%@page import="java.sql.*"%>

<%@page import="java.util.*"%>

<%@page import="java.util.Date"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel = "stylesheet" type = "text/css" href = "main.css"></link>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<style type="text/css">@import "jquery.datepick.css";</style>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.datepick.js"></script>
<script type="text/javascript"> 
$(function() {
//	$.datepick.setDefaults({useThemeRoller: true});
	$('#popupDatepicker').datepick();
	$('#popupDatepicker1').datepick();
	//$('#inlineDatepicker').datepick({onSelect: showDate});
});
</script>
<script type="text/javascript" src = "admin.js"></script>
<title>Admin</title>
</head>
<body>
<div id = "header">
 <div style="float:left">
 <img height="75px" width="165px" alt="IMAGE" src="./Img/banner1.jpg"/>
 <img height="75px" width="165px" alt="IMAGE" src="./Img/banner2.jpg"/>
 <img height="75px" width="165px" alt="IMAGE" src="./Img/banner3.jpg"/>
 <img height="75px" width="160px" alt="IMAGE" src="./Img/banner5.jpg"/>
  <img height="75px" width="160px" alt="IMAGE" src="./Img/banner4.jpg"/>
   <img height="75px" width="162px" alt="IMAGE" src="./Img/banner7.jpg"/> 
 </div>
 
 </div> 
 <div id = "main" > 
 <div id = "main-left"> 
 <div id = "links">
 <a id = "link1" href ="Home.jsp"> Home </a>
 <br/>
 <br/>
 <a id = "link2" href = "viewConferences.jsp"> View Conference</a>
  <br/>
 <br/>
 <a id = "link3" href = "RegisterConference.jsp"> Register for Conference</a>
  <br/>
 <br/>
 <a id = "link4" href = "ListOfAttendees.jsp"> List of Attendees</a>
  <br/>
 <br/>
 <a id = "link5" href = "PresentWorkshop.jsp">Submit Proposal</a>
  <br/>
 <br/>
 <a id = "link6" href = "Admin.jsp">Administrator</a>
 </div>
 </div>
 <div id = "main-right">
  <h1 id = "title" ><em>Tutor/Mentor Leadership And Networking Conference</em> </h1>
 <div class = "myProfile">
 <h4>To add a new Conference click here:<input type = "button" id = "btnConf" value = "Add Conference"/> </h4>
 
 <br/>
 <br/>
 <form id = "addConf" action = "AdminWorkshop.jsp" style="visibility: hidden" method="post">
 <div class = "addNewConf">
 Conference Name:
 <input type ="text" name = "conference" id = txtConference/>
 Start Date:
 <input type = "text" id = "popupDatepicker" name = "startDate" />
 End Date:
 <input type = "text" id = "popupDatepicker1" name = "endDate" />
 <input type = "submit" id = "btnSave" value = "Submit" onclick="return checkform(this.form)"/>
 <br/>
 </div>
 </form>
 <h4>To add workshops to an already created Conference click here: <input type = "button" id = "btnWorkshop" value = "Add workshops"/> </h4>
 <form id = "addWorkshoptoConf" action = "AdminWorkshopExists.jsp" style="visibility: hidden" method="post">
  <h4>Select the conference for which you wish to add workshops: <input type = "submit" id = "btnGo" value = "Go"/></h4>
  
   <select name="Conference_list">
<option value = "1">Select</option>
<%
ConferenceDataAccess confdata = new ConferenceDataAccess();
Conference conf = new Conference();
List <Conference>l1 = new ArrayList<Conference>();
l1 = confdata.getConferences();
Iterator<Conference> i = l1.iterator();

while(i.hasNext())
{
	conf = i.next();
	String nameOfConference = conf.getConfName();
	int confId = conf.getConfId();
%>
<option value="<%=confId%>"><%=nameOfConference%></option>
<% } %>
</select>
  
 </form>
 </div>
 </div>
 </div>

</body>
</html>